package cn.edu.scau.cmi.zenghanxiong.client;
import java.util.Iterator;
import java.util.List;

import org.hibernate.Session;
import org.hibernate.Transaction;

import cn.edu.scau.cmi.zenghanxiong.hibernate.DAO.StudentDAO;
//import cn.edu.scau.cmi.zenghanxiong.customize.dao.ScauCmiHibernateSessionFactory;
import cn.edu.scau.cmi.zenghanxiong.hibernate.domain.Student;
import cn.edu.scau.cmi.zenghanxiong.hibernate.factory.ScauCmiHibernateSessionFactory;
import javafx.application.Application;
//import cn.edu.scau.cmi.zenghanxiong.hibernate.dao.BookDAOByHibernate;
//import cn.edu.scau.cmi.zenghanxiong.hibernate.factory.HibernateSessionFactoryUtil;
//import cn.edu.scau.cmi.zenghanxiong.hibernate.domain.Book;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class HibernateClient extends Application{

	public static void main(String[] args) {
		launch(args);
	}

	public void start(Stage primaryStage) {
		try {
			Parent root = FXMLLoader.load(getClass()
					.getResource("/cn/edu/scau/cmi/zenghanxiong/hibernate/clientController/StudentManage.fxml"));

			Scene scene = new Scene(root, 511, 454);
			primaryStage.setScene(scene);
			primaryStage.setResizable(false);
			primaryStage.setTitle("HibernateClient");
			primaryStage.show();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
